<div id="top-content">
	<h2 class="midline-heading"><span>Top Content on FinalsClub</span></h2>
	<div class="top-list">
		<h3 class="gradient dark">Popular Course Notes</h3>
		<ul>
			<?php foreach($notes as $note): ?>
			<li>
				<p><?php echo link_to($note->getCourse()->getName(), 'courses/show?id='.$note->getCourseId())?></p>
				<p>Lecture <?php echo $note->getNumber() ?>: <?php echo $note->getTopic() ?></p>
			</li>
			<?php endforeach ?>
			<li>
				<?php echo link_to('view all', 'courses/index')?>
			</li>
		</ul>
	</div>
	<div class="top-list">
		<h3 class="gradient dark">Most Active Study Groups</h3>
		<ul>
			<?php foreach($groups as $group): ?>
			<li>
				<p><?php echo link_to($group->getName(), 'groups/show?id='.$group->getId() )?></p>
				<p><?php echo $group->countGroupMembers() ?> members</p>
			</li>
			<?php endforeach ?>
			<li>
				<?php echo link_to('view all', 'groups/index')?>
			</li>
		</ul>
	</div>
	<div class="top-list">
		<h3 class="gradient dark">Popular Courses</h3>
		<ul>
			<?php /*foreach($courses as $course): ?>
			<li>
				<p>
					<?php echo $course->getSubject() ? $course->getSubject()->getName().":" : '' ?>
					<?php echo link_to($course->getName() . " ". $course->getSection(), 'courses/show?id='.$course->getId())?>
				</p>
				<p>at <?php echo UserPeer::$networks[$course->getNetworkId()] ?> by <?php echo $course->getInstructorName() ?> </p>
			</li>
			<?php endforeach*/ ?>
			<li>
				<p>The Human Mind: <a href="http://finalsclub.org/notes/index/course_id/1563">An Introduction to Mind, Brain, and Behavior</a></p>
				<p>at Harvard by Cross-listed courses that satisfy the Science of the Physica</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/notes/index/course_id/1681">American Protest Literature from Tom Paine to Tupac</a></p>
				<p>at Harvard by John Stauffer and Timothy McCarthy</p>
			</li>
			<li>
				<p>Freshman Seminar: <a href="http://finalsclub.org/notes/index/course_id/1446">Freshman Seminar 43z. Cyberspace in Court: Law of the Internet</a></p>
				<p>at Harvard by Phillip Robert Malone</p>
			</li>
			<li>
				<p>Moral Reasoning (Core): <a href="http://finalsclub.org/notes/index/course_id/797">Moral Reasoning 22. Justice</a></p>
				<p>at Harvard by Michael J. Sandel</p>
			</li>
			<li>
				<p>Freshman Seminar: <a href="http://finalsclub.org/notes/index/course_id/1439">Freshman Seminar 42w. The Book: From Gutenberg to the Internet</a></p>
				<p>at Harvard by Robert Darnton</p>
			</li>
			<li>
				<p>Science (Core): <a href="http://finalsclub.org/notes/index/course_id/1550">Science A-35. The Energetic Universe</a></p>
				<p>at Harvard by Robert Kirshner</p>
			</li>
		</ul>
	</div>
	
	<div class="top-list">
		<h3 class="gradient dark">Most Active Users</h3>
		<ul>
			<?php /*foreach($users as $user): ?>
			<li>
				<p><?php echo link_to($user->getUsername(), 'user_profiles/show?id='.$user->getId())?></p>
				<p>Member since <?php echo $user->getCreatedAt('mm/Y')?></p>
			</li>
			<?php endforeach*/ ?>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/102">undKyle Thomas</a></p>
				<p>Member since February 10, 2008</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/19">kurquoise</a></p>
				<p>Member since March 17, 2008</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/74">PPTime1504</a></p>
				<p>Member since February 22, 2008</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/78">Fauxneme</a></p>
				<p>Member since February 23, 2008</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/14">metallid</a></p>
				<p>Member since March 8, 2009</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/1258">Michela DeSantis</a></p>
				<p>Member since March 11, 2009</p>
			</li>
			<li>
				<p><a href="http://finalsclub.org/profiles/show/id/1236">Kayla Romanelli</a></p>
				<p>Member since February 2, 2009</p>
			</li>
		</ul>
	</div>
</div>
